package com.service.samp.vo;

import java.io.Serializable;

import com.framework.dbs.vo.BaseObject;

/**
 * PagetestId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Pagetest extends BaseObject {

	// Fields

	private Long gid;
	private String gno;
	private String goodsname;
	private String spec;
	private String color;
	private String weight;
	private String remark;

	// Constructors

	/** default constructor */
	public Pagetest() {
	}

	/** full constructor */
	public Pagetest(Long gid, String gno, String goodsname, String spec,
			String color, String weight, String remark) {
		this.gid = gid;
		this.gno = gno;
		this.goodsname = goodsname;
		this.spec = spec;
		this.color = color;
		this.weight = weight;
		this.remark = remark;
	}

	// Property accessors

	public Long getGid() {
		return this.gid;
	}

	public void setGid(Long gid) {
		this.gid = gid;
	}

	public String getGno() {
		return this.gno;
	}

	public void setGno(String gno) {
		this.gno = gno;
	}

	public String getGoodsname() {
		return this.goodsname;
	}

	public void setGoodsname(String goodsname) {
		this.goodsname = goodsname;
	}

	public String getSpec() {
		return this.spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public String getColor() {
		return this.color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public String getWeight() {
		return this.weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Pagetest))
			return false;
		Pagetest castOther = (Pagetest) other;

		return ((this.getGid() == castOther.getGid()) || (this.getGid() != null
				&& castOther.getGid() != null && this.getGid().equals(
				castOther.getGid())))
				&& ((this.getGno() == castOther.getGno()) || (this.getGno() != null
						&& castOther.getGno() != null && this.getGno().equals(
						castOther.getGno())))
				&& ((this.getGoodsname() == castOther.getGoodsname()) || (this
						.getGoodsname() != null
						&& castOther.getGoodsname() != null && this
						.getGoodsname().equals(castOther.getGoodsname())))
				&& ((this.getSpec() == castOther.getSpec()) || (this.getSpec() != null
						&& castOther.getSpec() != null && this.getSpec()
						.equals(castOther.getSpec())))
				&& ((this.getColor() == castOther.getColor()) || (this
						.getColor() != null
						&& castOther.getColor() != null && this.getColor()
						.equals(castOther.getColor())))
				&& ((this.getWeight() == castOther.getWeight()) || (this
						.getWeight() != null
						&& castOther.getWeight() != null && this.getWeight()
						.equals(castOther.getWeight())))
				&& ((this.getRemark() == castOther.getRemark()) || (this
						.getRemark() != null
						&& castOther.getRemark() != null && this.getRemark()
						.equals(castOther.getRemark())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getGid() == null ? 0 : this.getGid().hashCode());
		result = 37 * result
				+ (getGno() == null ? 0 : this.getGno().hashCode());
		result = 37 * result
				+ (getGoodsname() == null ? 0 : this.getGoodsname().hashCode());
		result = 37 * result
				+ (getSpec() == null ? 0 : this.getSpec().hashCode());
		result = 37 * result
				+ (getColor() == null ? 0 : this.getColor().hashCode());
		result = 37 * result
				+ (getWeight() == null ? 0 : this.getWeight().hashCode());
		result = 37 * result
				+ (getRemark() == null ? 0 : this.getRemark().hashCode());
		return result;
	}

	@Override
	public Serializable getId() {
		// TODO Auto-generated method stub
		return this.gid;
	}

	@Override
	public String getSequenceName() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setId(String id) {

	}

}